#ifndef MANAGER_H
#define MANAGER_H

#include "querywidget.h"
#include "entityeditor.h"
#include "logviewer.h"

namespace Ui { class Manager; }

class Manager : public QMainWindow
{
    Q_OBJECT

public:
    Manager(QWidget *parent = nullptr);
    ~Manager();

    void prepareQueryWidget(int idx);
    void showMessage(const QString &message);
    void transferLog(const QString &log);

signals:
    void appendLog(const QString &log);

private slots:
    void on_actionDepartment_triggered();
    void on_actionPerson_triggered();
    void on_actionSaleOrder_triggered();
    void on_actionEntityEditor_triggered();
    void on_actionLogViewer_triggered();

private:
    Ui::Manager *ui;

    QueryWidget *queryWidget;
    EntityEditor *entityEditor;
    LogViewer *logViewer;
};
#endif // MANAGER_H
